package com.hhs.storage.service;

import com.hhs.storage.bean.BasePermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhs.storage.bean.BasePermissionUser;
import com.hhs.storage.bean.InputParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-01-09
 */
public interface BasePermissionService extends IService<BasePermission> {

    /**
     * @Author: HuangHaiShui 
     * @Description:获取全部的权限点
     * @Date: 10:08 2023/1/10
     * @param inputParam: 
     * @return: Map<String,Object>
     **/
    Map<String, Object> getAll(InputParam inputParam);
    
    /**
     * @Author: HuangHaiShui 
     * @Description: 获取某个用户已有的权限点
     * @Date: 13:32 2023/1/10
     * @param userId:
     **/
    List<BasePermission> getByUserId(String userId);

    Boolean hasPermission(String userId,String permissionFlag);

    Map<String, Object> configData(boolean status, String perId, String userId);
}
